package com.wzd.springmvc.service;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wzd.springmvc.dao.UserDao;
import com.wzd.springmvc.entity.UserEntity;

@Service("helloService")
public class HelloService {
	@Autowired
	private UserDao userDao;

	public UserEntity getUserById(String id) {
		return userDao.selectUser("1");
	}

	public UserEntity findUser(String userName, String password) {
		Map<String,Object> map = new HashMap<String,Object>();
		map.put("userName", userName);
		map.put("password", password);
		return userDao.findUser(map);
	}

}
